package com.back.campus_back.service;

import com.back.campus_back.domain.Orders;
import com.back.campus_back.domain.OrdersAddVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-04-20
 */
public interface OrdersService extends IService<Orders> {

    //获取所有的订单id
    public List getOrderGroup(@Param(value = "user_id") int user_id);

    /*
    * 查询订单信息按照时间降序显示
    * */
    public List getOrders(@Param(value = "user_id") int user_id);


    /*
    * 生成订单
    * */
    public String addOrders(List<OrdersAddVo> orders);

    //查询所有订单
    public List findAllOrders();



}
